package com.cby.olive.sample

import android.app.Application
import com.cby.android.olive.licon.manager.LauncherIconManager
import com.cby.android.olive.storage.OlivePreferences
import com.cby.android.olive.tool.FloatingWindowManager

/**
 * @description: OliveApp
 * @author: ChenBaoYang
 * @createDate: 2022/12/10 4:01 下午
 */
class OliveApp : Application(){

    companion object {
        var _application: OliveApp? = null
        fun getInstance(): OliveApp {
            return _application!!
        }
    }

    override fun onCreate() {
        super.onCreate()
        _application = this
        FloatingWindowManager.init(this)
        OlivePreferences.init(this)
        LauncherIconManager.register(this)
    }
}